package br.unicamp.ic.inf312.arena.visao;

import java.awt.Color;
import javax.swing.SwingConstants;
import javax.swing.table.DefaultTableCellRenderer;

//TODO: Alteracao para a ativ. 1
//===========================================================================\\
public class SimpleTableCellRenderer extends DefaultTableCellRenderer
//===========================================================================\\
{
	public static final int TEXT_ALIGNMENT_LEFT   = SwingConstants.LEFT;
	public static final int TEXT_ALIGNMENT_RIGHT  = SwingConstants.RIGHT;
	public static final int TEXT_ALIGNMENT_CENTER = SwingConstants.CENTER;

  
/*-------------------------------------------------------------------------*/
	public SimpleTableCellRenderer()
/*-------------------------------------------------------------------------*/
	{
		super();
	}

/*-------------------------------------------------------------------------*/
	public SimpleTableCellRenderer( Color f_bgColor )
/*-------------------------------------------------------------------------*/
	{
		super();
		this.setBackground( f_bgColor );
	}

/*-------------------------------------------------------------------------*/
	public SimpleTableCellRenderer( int f_txtAlignment )
/*-------------------------------------------------------------------------*/
	{
		super();
		this.setHorizontalAlignment( f_txtAlignment );
	}

/*-------------------------------------------------------------------------*/
	public SimpleTableCellRenderer( Color f_bgColor, int f_txtAlignment )
/*-------------------------------------------------------------------------*/
	{
		super();
		this.setBackground( f_bgColor );
		this.setHorizontalAlignment( f_txtAlignment );
	}

/*-------------------------------------------------------------------------*/
	public SimpleTableCellRenderer( Color f_bgColor, Color f_fgColor )
/*-------------------------------------------------------------------------*/
	{
		super();
		this.setBackground( f_bgColor );
		this.setForeground( f_fgColor );
	}

/*-------------------------------------------------------------------------*/
	public SimpleTableCellRenderer( Color f_bgColor, Color f_fgColor, int f_txtAlignment )
/*-------------------------------------------------------------------------*/
	{
		super();
		this.setBackground( f_bgColor );
		this.setForeground( f_fgColor );
		this.setHorizontalAlignment( f_txtAlignment );
	}
}